def quicksort(arr):
    if len(arr) < 2:
        return arr
    pivot = arr[0]
    less = [i for i in arr[1:] if i <= pivot]
    greater = [i for i in arr[1:] if i > pivot]
    return quicksort(less) + [pivot] + quicksort(greater)

target = [123,13,21,3,4,325,423,65,346,45,75,876,9,9981,5,432,54,36,543,64,537,64,7]
print(quicksort(target))
